package top.korori.sv.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 *
 * 短视频作品
 *
 * @author korori
 */
@Getter
@Setter
@TableName("sv_work")
@ApiModel(value = "SvWork对象", description = "短视频作品")
public class SvWork implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("作品id")
    @TableId(value = "work_id", type = IdType.AUTO)
    private Long workId;

    @ApiModelProperty("描述")
    private String intro;

    @ApiModelProperty("封面地址")
    private String cover;

    @ApiModelProperty("视频地址")
    private String url;

    @ApiModelProperty("可见权限（0 公开 1 仅自己）")
    private Integer per;

    @ApiModelProperty("发布地址")
    private String addr;

    @ApiModelProperty("状态(0 正常 1 审核 2 未通过)")
    private Integer status;

    @ApiModelProperty("发布用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除(0 正常 1 已删除)")
    private Integer isDel;

    @ApiModelProperty("点赞数")
    private Long likeNum;

    @ApiModelProperty("收藏数")
    private Long starNum;

    @ApiModelProperty("是否允许下载(0 允许 1 不允许)")
    private Byte isDown;

    @ApiModelProperty("浏览量")
    private Long browseNum;

    @ApiModelProperty("评论数")
    private Long commentNum;

    @ApiModelProperty("分享数")
    private Long shareNum;
}
